package com.situ.mall.controller;

import com.situ.mall.pojo.query.OrderItemQuery;
import com.situ.mall.service.IOrderItemSevice;
import com.situ.mall.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/orderitem")
public class OrderItemController {
    @Autowired
    private IOrderItemSevice orderitemService;
    @Autowired
    private RedisTemplate redisTemplate;

    @RequestMapping("/list")
    public PageResult list(OrderItemQuery orderitemQuery) {
        return orderitemService.list(orderitemQuery);
    }
}
